package com.electric.qrapp.entity.sealed

/**
 *@author created by WA03675
 *@date  2021-09-03 18:29
 *@des 网络状态类
 */
sealed class NetState<out T : Any> {
    data class Success<out T : Any>(val data: T? = null) : NetState<T>()
    data class SuccessButNull(val type: String) : NetState<Nothing>()
    data class Fail(val e: Exception) : NetState<Nothing>()
}